package com.cennavi.mineplay.init;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

import com.mercator.TileUtils;
@Component
public class InitInfo  implements ApplicationRunner{

	@Value("${is_wmts}")
	private String is_wmts;

	@Override
	public void run(ApplicationArguments arg0) throws Exception {
		
		if ("1".equals(is_wmts)){
			TileUtils.is_wmts = true;
		}else{
			TileUtils.is_wmts = false;
		}
		
	}
 

}
